package com.stream;

import java.util.Random;

public class LenDemo {
	public static void main(String[] args) {
		String str = "my name is 001!";
		//Stream.of(str.split(" ")).filter(s->s.length()>3).map(s->s.length()).forEach(System.out::println);
		/*Stream.of(str.split(" ")).flatMap(s->s.chars().boxed()).forEach(i->{
			System.out.println((char)i.intValue());
		});*/
		//Stream.of(str.split(" ")).peek(System.out::println).forEach(System.out::println);
		new Random().ints().filter(i->i>100 && i<1000).limit(5).forEach(System.out::println);
	
	}
}
